<?php
namespace app\common\validate;

use think\Validate;

class AttendancesettingValidate extends Validate
{
    protected $rule =   [
        'att_name'  => 'require|max:50',
        'start_time' => 'require',
        'end_time' => 'require',
		'att_range'	=> 'require|number'
    ];
    
    protected $message  =   [
        'att_name.require' => '事件必须填写',
        'att_name.max'     => '通知标题最多不能超过50个字符',
		'att_range.number' => '必须输入数字',
    ];
    
    protected $scene = [
        'add'  =>  ['att_name','start_time','end_time','att_range'],
        'edit'  =>  ['att_name','start_time','end_time','att_range']

    ];
}
